package com.yyg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;
//主导航
@Data
@TableName(value = "mainmenu")
public class MainMenu {
    @TableId(type = IdType.AUTO)
    private int id;
    private String title;
    private String path;
    private List<SubMenu> sList;

    public MainMenu(String title, String path, List<SubMenu> sList) {
        this.title = title;
        this.path = path;
        this.sList=sList;
    }

    public MainMenu() {
    }
}
